home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Apple II Sample Code / MPW IIGS SC / SC.024.Teach / teach.c / uglobals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-24  |  1.0 KB  |  35 lines  |  [TEXT/MPS ]

  1. /**********************************************************************
  2. *
  3. * teach uglobals.c -- Version 3.0
  4. *
  5. * Copyright (c)
  6. * Apple Computer, Inc.  1986-1990
  7. * All Rights Reserved.
  8. *
  9. * Developer Technical Support Apple II Sample Code
  10. *
  11. * This file contains the code which intializes the global variables 
  12. * used by the busy box program.
  13. *
  14. **********************************************************************/
  15.  
  16. #include <memory.h>
  17. #include <window.h>
  18.  
  19. unsigned int    userID;         /* Application ID assigned by Memory Mgr */
  20. unsigned int    quitFlag;        /* True when quitting */
  21. unsigned int    staggerCount;    /* Used to stagger windows as they open */
  22. WmTaskRec        event;            /* All events are returned here. */
  23. GrafPortPtr     lastWindow;     /* This private global is used in CheckFrontW.
  24.                                 ** to prevent extra work when the windows
  25.                                 ** have not changed.  It is initialized
  26.                                 ** at the beginning of MainEvent.
  27.                                 */
  28.  
  29. void    initGlobals()
  30. {
  31.     quitFlag = staggerCount = 0;
  32.     event.wmTaskMask = 0x001FFFFFL;
  33.     lastWindow = (GrafPortPtr)-1;
  34. }
  35.